package top.oauth2.server.cilent;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import top.oauth2.common.response.Message;
import top.oauth2.server.entity.SendSmsVo;

/**
 * @author xphu
 * @version 1.0
 * @date 2021/9/16 16:00
 */
//@FeignClient(value = "sms-server", fallback = SmsClientFallBack.class)
@FeignClient(value = "sms-server")
@RequestMapping(path = "/sms")
public interface SmsClient {

    @PostMapping(value = "/send")
    public Message sendSmsMsg(@RequestBody SendSmsVo sendSmsVo);
}
